<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>

<!DOCTYPE html>
<html>
<head>
<title>security system</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet"
	href="<c:url value="/css/bootstrap.min.css"></c:url>">

</head>

<body style="background-color:#EEEEEE;">
	<div class="row" style="margin-top:80px;">
		<div class="col-lg-6 col-lg-offset-3">
			<s:form class="form-signin" namespace="/system" action="login"
				method="post" role="form"
				onSubmit="return Validator.Validate(this,3)">
				<h2 class="form-signin-heading" style="margin-bottom:40px;">UUC
					Bioengineering Ltd. Security System</h2>

				<label class="col-lg-3 control-label">UserName: </label>
				<s:textfield name="userName" cssClass="form-control"
					placeholder="Please enter your username" datatype="Require"
					msg="Please enter your username."></s:textfield>
				<label class="col-lg-3 control-label" style="margin-top:20px;">Password:
				</label>
				<s:password name="userPwd" cssClass="form-control"
					placeholder="Please enter your password" dataType="Require"
					msg="Please enter your password"></s:password>
				<div class="col-lg-8">
					<div class="row" style="margin-top:20px; margin-buttom:20px;">
						<s:select name="type"
							list="#{'User':'User','Administrator':'Administrator'}">
						</s:select>
					</div>
					<div class="row" style="margin-bottom:20px;">
						<label class="checkbox"> <input type="checkbox"
							value="remember-me"> Remember me </label>
					</div>
					<s:actionerror cssClass="error" />
					<button class="btn btn-lg btn-primary btn-block" type="submit"
						style="margin-top:30px;">Sign in</button>
				</div>

			</s:form>
		</div>
	</div>
	<script src="<c:url value="/js/jquery-1.9.1.min.js"></c:url>"></script>
	<script src="<c:url value="/js/bootstrap.min.js"></c:url>"></script>
	<script type="text/javascript"
		src="<s:url value="/js/Validator.js"></s:url>"></script>
</body>
</html>
